package com.bwie.mq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;

@Component
public class Protuctor {

    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;
    public void prot(String email){
        jmsMessagingTemplate.convertAndSend("bbb",email);
    }
}
